package com.chb.abstractfactory;

/**
 * @author chihb
 * @create-time 2024/10/23 9:05
 * @description
 */
public class Test {
    public static void main(String[] args) {
        Factory factoryA = new FactoryA();
        Drink sprite = factoryA.createDrink();
        sprite.showDrink();
        Snack cookie = factoryA.createSnack();
        cookie.showSnack();
        System.out.println("==============================");
        Factory factoryB = new FactoryB();
        Drink kola= factoryB.createDrink();
        kola.showDrink();
        Snack crisps = factoryB.createSnack();
        crisps.showSnack();
    }
}
